@echo off
set "file_path=./testcases"
set "file_name=test"
set "extension=obr"
set "value=编译失败，语法存在错误"

java -cp ./bin oberonc . %file_path%/%file_name%.%extension%

if exist "%file_name%.class" (
    set "value=通过编译"
    del *.class *.smb
)

echo Value is: %value%
@echo on